<page-header>
</page-header>
<nz-spin [nzSpinning]="loading">
  <div class="main" *ngIf="company">
    <div class="left">
      <form nz-form nzLayout="vertical" #f="ngForm" (submit)="save()" se-container="1">
        <se label="公司名称" error="请输入公司名称!">
          <input nz-input [(ngModel)]="company.title" name="title" required>
        </se>
        <se label="公司官网">
          <input nz-input [(ngModel)]="company.website" name="website" required>
        </se>
        <se label="成立时间" error="请输入成立时间">
          <nz-date-picker [(ngModel)]="company.startDate" name="startDate"></nz-date-picker>
        </se>
        <se label="联系方式">
           <input nz-input [(ngModel)]="company.contact" name="contact" required>
        </se>
        <se label="企业微信">
          <input nz-input [(ngModel)]="company.weixin" name="weixin">
        </se>
        <se label="技术支持qq">
          <input nz-input [(ngModel)]="company.qq" name="qq">
        </se>
        <se label="公司地址">
          <input nz-input [(ngModel)]="company.address" name="address" required>
         </se>
        <se label="公司简介">
          <textarea nz-input name="describe" [(ngModel)]="company.describe" [nzAutosize]="{minRows: 4}" placeholder="请输入公司简介"></textarea>
        </se>
        <se>
          <button nz-button nzType="primary" [disabled]="f.invalid">提交</button>
        </se>
      </form>
    </div>
    <div class="right">
      <div class="avatar_title">公司logo</div>
      <div class="avatar"><img src="{{company.logo}}" alt="Avatar"></div>
      <nz-upload nzAction="/company/logo" [nzShowUploadList]="false">
        <button nz-button class="button_view">
          <i class="anticon anticon-upload"></i>
          <span>更换logo</span>
        </button>
      </nz-upload>
    </div>
  </div>
</nz-spin>
